package com.kkb.kkbportal.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author syt
 * @title DetailsVo
 * @projectName kkb-parent-v2
 * @description 展示导师/学员详情
 * @date 2021/8/15
 */
@ApiModel(value = "DetailsVo", description = "用于展示名人堂-导师/学员的详细信息的类")
@Data
public class DetailVo {

    // 基本信息

    @ApiModelProperty(value = "user主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "头像地址")
    @TableField(value = "head_url")
    private String headUrl;

    @ApiModelProperty(value = "账户名字")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "身份/职位")
    @TableField(value = "job")
    private String job;

    @ApiModelProperty(value = "擅长技能")
    @TableField(value = "skill")
    private String skill;

    @ApiModelProperty(value = "项目信息")
    @TableField(value = "project_info")
    private String projectInfo;

    @ApiModelProperty(value = "日薪")
    @TableField(value = "daily_salary")
    private Integer dailySalary;

    // 需要mysql联表查询的信息

    @ApiModelProperty(value = "获得的甲方综合评价")
    @TableField(exist = false)
    private BigDecimal firstPartyStar;

    @ApiModelProperty(value = "获得的学员综合评价")
    @TableField(exist = false)
    private BigDecimal studentStar;

    @ApiModelProperty(value = "已完成的项目数")
    @TableField(exist = false)
    private Integer completedProjectCount;

    @ApiModelProperty(value = "展示作品集")
    @TableField(exist = false)
    private List<DetailProductionVo> productionInfoList;

    @ApiModelProperty(value = "展示评价列表")
    @TableField(exist = false)
    private List<DetailScoreVo> scoreList;
}
